package com.pandora.credit.service;

import com.pandora.credit.dto.request.TerminalInfoRequest;
import com.pandora.credit.entity.Terminal;

/**
 * @author developer
 */
public interface TerminalService {

    /**
     * getByUniqueNo
     * @param uniqueNo uniqueNo
     * @param userId userId
     * @return Terminal
     */
    Terminal getByUniqueNoFirst(String uniqueNo, long userId);

    /**
     * update
     * @param terminal terminal
     */
    void update(Terminal terminal);

    /**
     * insert
     * @param terminal terminal
     */
    void insert(Terminal terminal);

    /**
     * uploadTerminalInfo
     * @param terminalInfoRequest terminalInfoRequest
     * @param accessToken accessToken
     * @param authorizationToken authorizationToken
     */
    void uploadTerminalInfo(TerminalInfoRequest terminalInfoRequest, String accessToken, String authorizationToken);

}
